﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CLVisionTrace;

namespace CLVisionCommuDFC
{
    public static class CommuTrace
    {
        public static LogTrace LogTraceInstance = null;

        public static void TraceDebug(string msg)
        {
            if (LogTraceInstance != null)
            {
                LogTraceInstance.Debug(msg);
            }
        }

        public static void TraceInfo(string msg)
        {
            if (LogTraceInstance != null)
            {
                LogTraceInstance.Info(msg);
            }
        }

        public static void TraceWarn(string msg)
        {
            if (LogTraceInstance != null)
            {
                LogTraceInstance.Warn(msg);
            }
        }

        public static void TraceError(string msg)
        {
            if (LogTraceInstance != null)
            {
                LogTraceInstance.Error(msg);
            }
        }

        public static void TraceFatal(string msg)
        {
            if (LogTraceInstance != null)
            {
                LogTraceInstance.Fatal(msg);
            }
        }

        enum TraceLevelEnum
        {
            Debug = 0,
            Info = 1,
            Warn = 2,
            Error = 3,
            Fatal = 4
        }

    }
}
